package com.kmdin.DB;

import java.io.InputStream;
import java.util.Properties;


public class ConnString {	
	//构造函数，在其中对所需变量初始化
	public ConnString(){
		try
		{
			InputStream objInputStream = getClass().getResourceAsStream("DataSqlconfig.properties");
			Properties objProperties = new Properties();
			
			objProperties.load(objInputStream);
			
			this.setDriver(objProperties.getProperty("driver"));
			this.setServer(objProperties.getProperty("server"));
			
			objInputStream.close();
		}
		catch(Exception ex){
			
		}
	}
	
	public String getDriver() {
		return driver;
	}
	public void setDriver(String driver) {
		this.driver = driver;
	}
	public String getServer() {
		return server;
	}
	public void setServer(String server) {
		this.server = server;
	}
	public String getDataBase() {
		return dataBase;
	}
	public void setDataBase(String dataBase) {
		this.dataBase = dataBase;
	}
	private String driver;
	private String server;
	private String dataBase;
}